package org.halk.job_admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.halk.job_admin.pojo.entity.ScheduleLog;

/**
 * @Author haozhu7
 * @Date 2024/9/21 11:04
 **/
@Mapper
public interface ScheduleLogMapper extends BaseMapper<ScheduleLog> {

    void updateStatusById(Integer id, int status);

    /**
     *
     * @param scheduleId
     * @return
     */
    ScheduleLog queryByScheduleId(String scheduleId);

    /**
     *
     * @param msgId
     * @return
     */
    ScheduleLog queryByMsgId(String msgId);

    /**
     * 查询完成状态
     * @param scheduleId
     * @return
     */
    Integer queryStatusByScheduleId(String scheduleId);
}
